package com.feature.core.util.event;

import org.springframework.context.ApplicationEvent;

public class AfterTransactionEvent extends ApplicationEvent {

    /**
     * @author wangzhiyue
     * @date 2025/07/09 16:52:05
     */
    private static final long serialVersionUID = 1L;
    private Runnable runnable;

    public AfterTransactionEvent(Object source, Runnable runnable) {
        super(source);
        this.runnable = runnable;
    }

    public AfterTransactionEvent(Runnable runnable) {
        super(new Object());
        this.runnable = runnable;
    }

    public Runnable getRunnable() {
        return runnable;
    }

}
